import { useState, useContext } from 'react'
import AuthContext from './store/auth-context'
import Login from './components/Login/Login'
import './App.css'

function App() {
  const [count, setCount] = useState(0)
  // mapStateToProps
  const authCtx = useContext(AuthContext)

  return (
      <>
        <main>
          {!authCtx.isLoggedIn && <Login />}

        </main>
      </>    
  )
}

export default App
